package com.mifengs.commonbase.base;

import android.content.Context;

import com.trello.rxlifecycle.LifecycleTransformer;

/**
 * Created by lihaoqi on 2017/10/30.
 */

public interface BaseView {
    void showShortToast(int resId);
    void showShortToast(String txt);
    void showLongToast(String txt);
    void showLongToast(int resId);
    /**
     * 显示加载动画
     */
    void showLoading();

    /**
     * 隐藏加载
     */
    void hideLoading();

    /**
     * 显示网络错误
     */
    void showNetError();

    void finish();


    /**
     * 绑定生命周期
     * @param <T>
     * @return
     */
    <T> LifecycleTransformer<T> bindToLife();

    Context getContext();
}
